import { request } from "@/request";

export async function fetchList(data) {
  const res = await request("/admin/areaStreet/listQuery", {
    method: "POST",
    data,
  });
  return {
    data: res?.data,
    success: true,
  };
}
export async function add(data) {
  return request("/admin/areaStreet/add", {
    method: "POST",
    data,
  });
}

export async function update(data) {
  return request("/admin/areaStreet/update", {
    method: "POST",
    data,
  });
}

export function remove(data) {
  return request(`/admin/areaStreet/delete?ids=${data.ids}`, {
    method: "POST",
  });
}
export function fetchInfo(data) {
  return request(`/admin/areaStreet/get/${data.id}`, {
    method: "POST",
  });
}
